﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace DerptelligenceSite.Areas.Marein.Models.Blog
{
	public class BlogTopic
	{
		public String title { get; set; }
		public String shortTitle { get; set; }
		public String info { get; set; }
		public String color_textarea { get; set; }
		public String color_border { get; set; }
		public String color_text { get; set; }
		public String url { get; set; }

		public BlogTopic( IDataRecord record )
		{
			title = (String)record["title"];
			shortTitle = (String)record["shortTitle"];
			info = (String)record["info"];
			color_textarea = (String)record["color_textarea"];
			color_border = (String)record["color_border"];
			color_text = (String)record["color_text"];
			url = VirtualPathUtility.ToAbsolute( "~/marein/blog/topic/" + shortTitle );
		}

		public BlogTopic()
		{

		}
	}
}